package com.llkj.qingnianguoxue.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 热门排行
 */
public class HotRankingBean implements Serializable {

    private String shop_num;
    private String shopping_num;
    private String num;
    private List<RankingBean> video;
    private List<RankingBean> books;
    private List<RankingBean> shopping;
    private List<RankingBean> praise;//我的点赞
    private List<RankingBean> leave;

    public String getShop_num() {
        return shop_num;
    }

    public void setShop_num(String shop_num) {
        this.shop_num = shop_num;
    }

    public String getShopping_num() {
        return shopping_num;
    }

    public void setShopping_num(String shopping_num) {
        this.shopping_num = shopping_num;
    }

    public List<RankingBean> getLeave() {
        return leave;
    }

    public void setLeave(List<RankingBean> leave) {
        this.leave = leave;
    }

    public List<RankingBean> getPraise() {
        return praise;
    }

    public void setPraise(List<RankingBean> praise) {
        this.praise = praise;
    }

    public List<RankingBean> getShopping() {
        return shopping;
    }

    public void setShopping(List<RankingBean> shopping) {
        this.shopping = shopping;
    }

    public List<RankingBean> getBooks() {
        return books;
    }

    public void setBooks(List<RankingBean> books) {
        this.books = books;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public List<RankingBean> getVideo() {
        return video;
    }

    public void setVideo(List<RankingBean> video) {
        this.video = video;
    }

    public List<RankingBean> getList() {
        return video;
    }

    public void setList(List<RankingBean> list) {
        this.video = list;
    }

    public static class RankingBean implements Serializable {

        /**
         * id : 1
         * img : http://101.201.71.21/qcgx/Uploads/2017-06-13/593fa5d082d75.jpg
         * title : 视频标题1111
         * abstract : 视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频简介视频...
         * artistId : 1
         * price : 13.00
         * duration : 03:00
         * type : 1
         */

        private String id;
        private String img;
        private String title;
        private String artistId;//大師id
        private String price;
        private String duration;
        private String type;//1未加购物车(1 视频2 图书), 2 已加购物车, 3 已购
        @SerializedName("abstract")
        private String abstractX;
        private String shopping_id;//购物车id
        private String content_id;// 详情id
        private boolean isCheck;//选中
        private String trial_reading;
        private String is_order;//是否可以订阅大师 1 可以订阅（可以订阅则不可以购买视频） 2 不能订阅 （不能订阅则可以购买视频）
        private String classify;//分类

        public String getClassify() {
            return classify;
        }

        public void setClassify(String classify) {
            this.classify = classify;
        }

        public String getIs_order() {
            return is_order;
        }

        public void setIs_order(String is_order) {
            this.is_order = is_order;
        }

        public int getTrial_reading() {
            int page = 0;
            try{
                page = Integer.parseInt(trial_reading);
            }catch (Exception e){}
            return page;
        }

        public void setTrial_reading(String trial_reading) {
            this.trial_reading = trial_reading;
        }

        public boolean isCheck() {
            return isCheck;
        }

        public void setIsCheck(boolean isCheck) {
            this.isCheck = isCheck;
        }

        public String getContent_id() {
            return content_id;
        }

        public void setContent_id(String content_id) {
            this.content_id = content_id;
        }

        public String getShopping_id() {
            return shopping_id;
        }

        public void setShopping_id(String shopping_id) {
            this.shopping_id = shopping_id;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getArtistId() {
            return artistId;
        }

        public void setArtistId(String artistId) {
            this.artistId = artistId;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getDuration() {
            return duration;
        }

        public void setDuration(String duration) {
            this.duration = duration;
        }

        public int getType() {
            int t = -1;
            try {
                t = Integer.parseInt(type);
            }catch (Exception e){}
            return t;
        }

        public void setType(int type) {
            this.type = String.valueOf(type);
        }

        public String getAbstractX() {
            return abstractX;
        }

        public void setAbstractX(String abstractX) {
            this.abstractX = abstractX;
        }
    }
}
